WT_DECLARE_WT_MEMBER(10,JavaScriptFunction,"ChildrenResize",function(a,f,c,e){function i(j){var k=b.px(j,"marginTop");k+=b.px(j,"marginBottom");if(!b.boxSizing(j)){k+=b.px(j,"borderTopWidth");k+=b.px(j,"borderBottomWidth");k+=b.px(j,"paddingTop");k+=b.px(j,"paddingBottom")}return k}var b=this,h=c>=0;a.lh=h&&e;a.style.height=h?c+"px":"";if(b.boxSizing(a)){c-=b.px(a,"marginTop");c-=b.px(a,"marginBottom");c-=b.px(a,"borderTopWidth");c-=b.px(a,"borderBottomWidth");c-=b.px(a,"paddingTop");c-=b.px(a,"paddingBottom");
f-=b.px(a,"marginLeft");f-=b.px(a,"marginRight");f-=b.px(a,"borderLeftWidth");f-=b.px(a,"borderRightWidth");f-=b.px(a,"paddingLeft");f-=b.px(a,"paddingRight")}var g,m,d;g=0;for(m=a.childNodes.length;g<m;++g){d=a.childNodes[g];if(d.nodeType==1&&!$(d).hasClass("wt-reparented"))if(h){var l=c-i(d);if(l>0){if(d.offsetTop>0){var n=b.css(d,"overflow");if(n==="visible"||n==="")d.style.overflow="auto"}if(d.wtResize)d.wtResize(d,f,l,e);else{l=l+"px";if(d.style.height!=l){d.style.height=l;d.lh=e}}}}else if(d.wtResize)d.wtResize(d,
f,-1);else{d.style.height="";d.lh=false}}});WT_DECLARE_WT_MEMBER(11,JavaScriptFunction,"ChildrenGetPS",function(a,f,c,e){return e});
WT_DECLARE_WT_MEMBER(12,JavaScriptFunction,"LastResize",function(a,f,c,e){var i=this,b=c>=0;a.lh=b&&e;a.style.height=b?c+"px":"";for(a=a.lastChild;a&&a.nodeType==1&&$(a).hasClass("wt-reparented");)a=a.previousSibling;if(a){var h=a.previousSibling;if(b){c-=h.offsetHeight+i.px(h,"marginTop")+i.px(h,"marginBottom");if(c>0)if(a.wtResize)a.wtResize(a,f,c,e);else{a.style.height=c+"px";a.lh=e}}else if(a.wtResize)a.wtResize(a,-1,-1);else{a.style.height="";a.lh=false}}});
WT_DECLARE_WT_MEMBER(13,JavaScriptFunction,"LastGetPS",function(a,f,c,e){var i=this,b,h;b=0;for(h=a.childNodes.length;b<h;++b){var g=a.childNodes[b];if(g!=f){var m=i.css(g,"position");if(m!="absolute"&&m!="fixed")if(c===0)e=Math.max(e,g.offsetWidth);else e+=g.offsetHeight+i.px(g,"marginTop")+i.px(g,"marginBottom")}}return e});
